package net.yb.service;

import net.yb.entity.Product;

import java.util.List;

/**
 * 商品业务接口
 */
public interface ProductService {
    void add(Product product);

    List<Product> findAll();

    void modify(Product product);

    void removeById(int id);

    Product findById(int id);

    List<Product> findByName(String name);

    List<Product> findByPrice(double minPrice, double maxPrice);
}
